#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <iostream>


int main(int argc, char **argv)
{
	printf("baidu\n");
	printf("百度\n");
	printf("%s\n","百度");
	std::string str("百度");
	printf("str[0] = %02x  len=%d\n", (unsigned char)str[0], str.length());
	printf("str[0] = %02x  len=%d\n", (unsigned char)str[1], str.length());
	printf("str[0] = %02x  len=%d\n", (unsigned char)str[2], str.length());
	printf("str[0] = %02x  len=%d\n", (unsigned char)str[3], str.length());
	printf("str[0] = %02x  len=%d\n", (unsigned char)str[4], str.length());
	printf("str[0] = %02x  len=%d\n", (unsigned char)str[5], str.length());
	std::cout<<"百度"<<std::endl;
	return 0;
}
